import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'ios_contact_permission_method_channel.dart';

abstract class IosContactPermissionPlatform extends PlatformInterface {
  /// Constructs a IosContactPermissionPlatform.
  IosContactPermissionPlatform() : super(token: _token);

  static final Object _token = Object();

  static IosContactPermissionPlatform _instance =
      MethodChannelIosContactPermission();

  /// The default instance of [IosContactPermissionPlatform] to use.
  ///
  /// Defaults to [MethodChannelIosContactPermission].
  static IosContactPermissionPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [IosContactPermissionPlatform] when
  /// they register themselves.
  static set instance(IosContactPermissionPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<int> getContactPermission() {
    throw UnimplementedError(
        'getContactPermission() has not been implemented.');
  }

  Future<bool> requestContactPermission() {
    throw UnimplementedError(
        'requestContactPermission() has not been implemented.');
  }

}
